/*

	Manipulate Archive List
	based on: http://help.blogger.com/bin/answer.py?answer=42199&topic=8932

*/

<!-- blogger archive script : paste this in header -->
<script type="text/javascript">

// declarations
var html_archive_list = '';
var href = '';
var canto_num = 0;

// Build Archive List Array
<BloggerArchives>
ARCHIVE_LIST[ARCHIVE_LIST.length] = new Array('<$BlogArchiveURL$>', '<$BlogArchiveName$>');
</BloggerArchives> 

// Reverse Array
ARCHIVE_LIST.reverse();

// Reprint List
for( var itm=0; itm < ARCHIVE_LIST.length; itm++)
{
	href = ARCHIVE_LIST[itm][0];
	archive_num = itm + 1;
	label = 'archive ' + archive_num;
	html_archive_list += '<p><a href="' + href + '">' + label + '</a><p>';
}
</script>
<!-- end blogger archive script -->


<!-- paste where you want to output list -->
<script type="text/javascript">
document.write(html_archive_list);
</script>
<noscript>
<BloggerArchives>
<p><a href='<$BlogArchiveURL$>'><$BlogArchiveName$></a></p>
</BloggerArchives>
</noscript>

